import React from 'react'
import { Input } from 'antd'
import { inject, observer } from 'mobx-react'

function UpdateDepartment(props) {
    props.departmentSettingsStore.setUpId(props.modalTask.dept_id)
    const setTitle = (data) => {
        props.departmentSettingsStore.setTitle(data)
    }
    return (
        <div>
            <p>部门名称：</p>
            <div> <Input type="text" onChange={(e) => setTitle(e.target.value)} placeholder={props.modalTask.dept_title} /></div>
        </div>
    )
}
export default inject('departmentSettingsStore')(observer(UpdateDepartment))

